package cn.zzuli.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date: 2020/12/24 19:47
 * @Author: 绯色下午茶
 * @Description:
 */
@RestController
@RequestMapping("/provider")
public class PaymentController {
    @Value("${server.port}")
    String port;

    @GetMapping("/payment/{id}")
    public String getServerPort(@PathVariable("id") Long id){
        return "nacos启动，端口号是： "+port;
    }
}
